import adminSupport from 'lola-admin-support-el'
const service = adminSupport.lib.service

export function login(data) {
  // console.log(data)
  const url = service.conf.api.get('portal').url + '/auth/login'
  return service.post(url, data)
}

export function getInfo(token) {
  const url = service.getRmoteUrl({ serviceName: 'portal', path: '/api/m4110/user/findInfo' })
  // console.log(url)
  return service.get(url, {})
}

export function logout() {
  const url = service.conf.api.get('portal').url + '/sso/out'
  return service.get(url, {})
}
